$OpenBSD: patch-src_logstalgia_cpp,v 1.3 2016/03/15 15:03:57 gonzalo Exp $
--- src/logstalgia.cpp.orig	Tue Oct 20 17:32:05 2015
+++ src/logstalgia.cpp	Sun Mar 13 23:44:44 2016
@@ -395,7 +395,7 @@ std::string Logstalgia::dateAtPosition(float percent) 
 
             time_t timestamp = le.timestamp;
 
-            struct tm* timeinfo = localtime ( &timestamp );
+	    struct tm *timeinfo = localtime( (const time_t *)(&timestamp) );
             strftime(datestr, 256, "%H:%M:%S %B %d, %Y", timeinfo);
             date = std::string(datestr);
         }
@@ -975,7 +975,7 @@ void Logstalgia::logic(float t, float dt) {
             char datestr[256];
             char timestr[256];
 
-            struct tm* timeinfo = localtime ( &currtime );
+	    struct tm *timeinfo = localtime( (const time_t *)(&currtime) );
             strftime(datestr, 256, "%A, %B %d, %Y", timeinfo);
             strftime(timestr, 256, "%X", timeinfo);
 
